namespace = cr_wol_intrigue

long_character_event = {
	id = cr_wol_intrigue.1
	title = CR_WOL_INTRIGUE_1_TITLE
	desc = CR_WOL_INTRIGUE_1_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = { name = CR_WOL_INTRIGUE_1_A wealth = -15 set_character_flag = cr_wol_spy_informants character_event = { id = cr_wol_intrigue.2 } }
	option = { name = CR_WOL_INTRIGUE_1_B set_character_flag = cr_wol_spy_letters character_event = { id = cr_wol_intrigue.2 } }
	option = { name = CR_WOL_INTRIGUE_1_C wealth = -25 set_character_flag = cr_wol_spy_honey_trap character_event = { id = cr_wol_intrigue.2 } }
}

character_event = {
	id = cr_wol_intrigue.2
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		random_list = {
			55 = {
				modifier = { factor = 1.50 intrigue = 12 }
				modifier = { factor = 1.50 intrigue = 16 }
				modifier = { factor = 1.35 trait = schemer }
				modifier = { factor = 1.25 trait = deceitful }
				modifier = { factor = 1.25 has_character_flag = cr_wol_spy_informants diplomacy = 12 }
				modifier = { factor = 1.25 has_character_flag = cr_wol_spy_letters learning = 12 }
				modifier = { factor = 1.25 has_character_flag = cr_wol_spy_honey_trap diplomacy = 12 }
				character_event = { id = cr_wol_intrigue.30 }
			}
			45 = {
				modifier = { factor = 1.50 NOT = { intrigue = 8 } }
				modifier = { factor = 1.25 trait = trusting }
				character_event = { id = cr_wol_intrigue.11 }
			}
		}
	}
}

long_character_event = {
	id = cr_wol_intrigue.11
	title = CR_WOL_INTRIGUE_11_TITLE
	desc = CR_WOL_INTRIGUE_11_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = { name = CR_WOL_INTRIGUE_11_A cr_gain_temperate_good_ending_trait_effect = yes cr_wol_progress_intrigue_education = yes cr_wol_cleanup_spy = yes }
	option = { name = CR_WOL_INTRIGUE_11_B wealth = -15 cr_wol_complete_intrigue_schemer = yes cr_wol_cleanup_spy = yes }
}

character_event = {
	id = cr_wol_intrigue.20
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		random_list = {
			50 = { modifier = { factor = 1.50 intrigue = 15 } event_target:cr_wol_spy_target = { death = { death_reason = death_murder_unknown } } character_event = { id = cr_wol_intrigue.21 } }
			25 = { character_event = { id = cr_wol_intrigue.22 } }
			25 = { modifier = { factor = 1.50 NOT = { intrigue = 10 } } add_character_modifier = { name = cr_wol_exposed_murderer duration = 1825 } prestige = -100 event_target:cr_wol_spy_target = { opinion = { who = ROOT modifier = cr_wol_exposed years = 5 } } character_event = { id = cr_wol_intrigue.23 } }
		}
	}
}

long_character_event = { id = cr_wol_intrigue.21 title = CR_WOL_INTRIGUE_21_TITLE desc = CR_WOL_INTRIGUE_21_DESC picture = GFX_cr_evt_spymaster border = GFX_event_long_frame_intrigue is_triggered_only = yes option = { name = CR_WOL_INTRIGUE_21_A cr_wol_complete_intrigue_schemer = yes clear_event_target = cr_wol_spy_target } }
long_character_event = { id = cr_wol_intrigue.22 title = CR_WOL_INTRIGUE_22_TITLE desc = CR_WOL_INTRIGUE_22_DESC picture = GFX_cr_evt_spymaster border = GFX_event_long_frame_intrigue is_triggered_only = yes option = { name = CR_WOL_INTRIGUE_22_A cr_gain_martial_bad_ending_trait_effect = yes clear_event_target = cr_wol_spy_target } }
long_character_event = { id = cr_wol_intrigue.23 title = CR_WOL_INTRIGUE_23_TITLE desc = CR_WOL_INTRIGUE_23_DESC picture = GFX_cr_evt_spymaster border = GFX_event_long_frame_intrigue is_triggered_only = yes option = { name = CR_WOL_INTRIGUE_23_A cr_gain_deceitful_bad_ending_trait_effect = yes cr_wol_progress_intrigue_education = yes clear_event_target = cr_wol_spy_target } }

character_event = {
	id = cr_wol_intrigue.30
	hide_window = yes
	is_triggered_only = yes
	immediate = {
		random_list = {
			10 = { character_event = { id = cr_wol_intrigue.40 } }
			10 = { character_event = { id = cr_wol_intrigue.41 } }
			10 = { character_event = { id = cr_wol_intrigue.42 } }
			10 = { character_event = { id = cr_wol_intrigue.43 } }
			10 = { character_event = { id = cr_wol_intrigue.44 } }
			10 = { character_event = { id = cr_wol_intrigue.45 } }
			10 = { character_event = { id = cr_wol_intrigue.46 } }
			10 = { character_event = { id = cr_wol_intrigue.47 } }
			10 = { character_event = { id = cr_wol_intrigue.48 } }
			10 = { character_event = { id = cr_wol_intrigue.49 } }
		}
	}
}

long_character_event = {
	id = cr_wol_intrigue.40
	title = CR_WOL_INTRIGUE_40_TITLE
	desc = CR_WOL_INTRIGUE_40_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_40_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_40_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_40_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.41
	title = CR_WOL_INTRIGUE_41_TITLE
	desc = CR_WOL_INTRIGUE_41_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_41_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_41_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_41_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.42
	title = CR_WOL_INTRIGUE_42_TITLE
	desc = CR_WOL_INTRIGUE_42_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_42_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_42_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_42_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.43
	title = CR_WOL_INTRIGUE_43_TITLE
	desc = CR_WOL_INTRIGUE_43_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_43_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_43_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_43_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.44
	title = CR_WOL_INTRIGUE_44_TITLE
	desc = CR_WOL_INTRIGUE_44_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_44_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_44_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_44_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.45
	title = CR_WOL_INTRIGUE_45_TITLE
	desc = CR_WOL_INTRIGUE_45_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_45_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_45_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_45_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.46
	title = CR_WOL_INTRIGUE_46_TITLE
	desc = CR_WOL_INTRIGUE_46_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_46_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_46_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_46_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.47
	title = CR_WOL_INTRIGUE_47_TITLE
	desc = CR_WOL_INTRIGUE_47_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_47_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_47_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_47_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.48
	title = CR_WOL_INTRIGUE_48_TITLE
	desc = CR_WOL_INTRIGUE_48_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_48_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_48_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_48_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}

long_character_event = {
	id = cr_wol_intrigue.49
	title = CR_WOL_INTRIGUE_49_TITLE
	desc = CR_WOL_INTRIGUE_49_DESC
	picture = GFX_cr_evt_spymaster
	border = GFX_event_long_frame_intrigue
	is_triggered_only = yes
	option = {
		name = CR_WOL_INTRIGUE_49_A
		event_target:cr_wol_spy_target = { wealth = -50 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_blackmailed years = 5 } }
		wealth = 50
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_49_B
		event_target:cr_wol_spy_target = { prestige = -100 add_character_modifier = { name = cr_wol_compromised duration = 1825 } opinion = { who = ROOT modifier = cr_wol_exposed years = 3 } }
		prestige = 25
		cr_wol_complete_intrigue_schemer = yes
		cr_wol_cleanup_spy = yes
	}
	option = {
		name = CR_WOL_INTRIGUE_49_C
		event_target:cr_wol_spy_target = { add_character_modifier = { name = cr_wol_compromised duration = 1825 } random_list = { 25 = { add_trait = stressed } 75 = { } } }
		cr_wol_complete_intrigue_impaler = yes
		cr_wol_cleanup_spy = yes
	}
}
